package com.wyzz.hr.pojo.base;

import java.io.Serializable;
import java.util.Date;

import com.wyzz.hr.base.BaseDomain;
import com.wyzz.hr.pojo.Emphistorytrain;
import com.wyzz.hr.pojo.Employee;

public abstract class BaseEmphistorytrain extends BaseDomain implements
		Serializable {

	public BaseEmphistorytrain() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseEmphistorytrain(String ehtId) {
		hashCode = 0x80000000;
		setEhtId(ehtId);
		initialize();
	}

	protected void initialize() {
	}

	public String getEhtId() {
		return ehtId;
	}

	public void setEhtId(String ehtId) {
		this.ehtId = ehtId;
		hashCode = 0x80000000;
	}

	public String getEhtDepartment() {
		return ehtDepartment;
	}

	public void setEhtDepartment(String ehtDepartment) {
		this.ehtDepartment = ehtDepartment;
	}

	public String getEhtLocation() {
		return ehtLocation;
	}

	public void setEhtLocation(String ehtLocation) {
		this.ehtLocation = ehtLocation;
	}

	public Date getEhtStartDate() {
		return ehtStartDate;
	}

	public void setEhtStartDate(Date ehtStartDate) {
		this.ehtStartDate = ehtStartDate;
	}

	public Date getEhtEndDate() {
		return ehtEndDate;
	}

	public void setEhtEndDate(Date ehtEndDate) {
		this.ehtEndDate = ehtEndDate;
	}

	public String getEhtCourse() {
		return ehtCourse;
	}

	public void setEhtCourse(String ehtCourse) {
		this.ehtCourse = ehtCourse;
	}

	public String getEhtCertificate() {
		return ehtCertificate;
	}

	public void setEhtCertificate(String ehtCertificate) {
		this.ehtCertificate = ehtCertificate;
	}

	public String getEhtCreateBy() {
		return ehtCreateBy;
	}

	public void setEhtCreateBy(String ehtCreateBy) {
		this.ehtCreateBy = ehtCreateBy;
	}

	public Date getEhtCreateDate() {
		return ehtCreateDate;
	}

	public void setEhtCreateDate(Date ehtCreateDate) {
		this.ehtCreateDate = ehtCreateDate;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Emphistorytrain))
			return false;
		Emphistorytrain emphistorytrain = (Emphistorytrain) obj;
		if (null == getEhtId() || null == emphistorytrain.getEhtId())
			return false;
		else
			return getEhtId().equals(emphistorytrain.getEhtId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getEhtId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getEhtId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public void setEhtLastChangeBy(String ehtLastChangeBy) {
		this.ehtLastChangeBy = ehtLastChangeBy;
	}

	public Date getEhtLastChangeTime() {
		return ehtLastChangeTime;
	}

	public void setEhtLastChangeTime(Date ehtLastChangeTime) {
		this.ehtLastChangeTime = ehtLastChangeTime;
	}

	public String getEhtLastChangeBy() {
		return ehtLastChangeBy;
	}

	public String getEhtAttatchment() {
		return ehtAttatchment;
	}

	public void setEhtAttatchment(String ehtAttatchment) {
		this.ehtAttatchment = ehtAttatchment;
	}

	public String getEhtComments() {
		return ehtComments;
	}

	public void setEhtComments(String ehtComments) {
		this.ehtComments = ehtComments;
	}

	public static String REF = "Emphistorytrain";
	public static String PROP_EHT_ID = "ehtId";
	public static String PROP_EHT_CREATE_DATE = "ehtCreateDate";
	public static String PROP_EHT_CERFIFICATE = "ehtCertificate";
	public static String PROP_EMPLOYEE = "employee";
	public static String PROP_EHT_COURSE = "ehtCourse";
	public static String PROP_EHT_DEPARTMENT = "ehtDepartment";
	public static String PROP_EHT_CREATE_BY = "ehtCreateBy";
	public static String PROP_EHT_END_DATE = "ehtEndDate";
	public static String PROP_EHT_START_DATE = "ehtStartDate";
	public static String PROP_EHT_LOCATION = "ehtLocation";
	public static String PROP_EHT_ATTATCHMENT = "ehtAttatchment";
	public static String PROP_EHT_LAST_CHANGE_BY = "ehtLastChangeBy";
	public static String PROP_EHT_LAST_CHANGE_TIME = "ehtLastChangeTime";
	public static String PROP_EHT_COMMENTS = "ehtComments";
	private int hashCode;
	private String ehtId;
	private String ehtDepartment;
	private String ehtLocation;
	private Date ehtStartDate;
	private Date ehtEndDate;
	private String ehtCourse;
	private String ehtCertificate;
	private String ehtCreateBy;
	private Date ehtCreateDate;
	private String ehtLastChangeBy;
	private Date ehtLastChangeTime;
	private String ehtAttatchment;
	private String ehtComments;
	private Employee employee;

}
